package com.mark.mall.web.platform.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author admin
 * Created on 2021/3/3 16:49
 */
@Data
@ApiModel("前台购物车添加")
public class CartAddParam {
    @ApiModelProperty(value = "物料id")
    @NotEmpty(message = "物料id不能为空！")
    private String productId;

    @ApiModelProperty(value = "购买数量")
    private Integer num;

    @ApiModelProperty(value = "会员id")
    @NotEmpty(message = "会员id不能为空！")
    private String memberId;
}
